#include "StdAfx.h"
#include "dmethodentity.h"
#include "dvariableentity.h"

DMethodEntity::DMethodEntity(QObject *parent)
	: DAbstractEntity(parent)
{
	m_eEntityType = eMethod;
}

DMethodEntity::~DMethodEntity()
{

}

const QString& DMethodEntity::returnType() const
{
	return m_strReturnType;
}

void DMethodEntity::setReturnType(const QString& retType)
{
	m_strReturnType = retType;
}

void DMethodEntity::addParam(DVariableEntity* pParam)
{
	m_params.append(pParam);
}

void DMethodEntity::removeParam(const QString& strParamName)
{

}

void DMethodEntity::removeAllParams()
{
	// CHECK: maybe need to call delete before clear
	m_params.clear();
}

const DMethodEntity::Parameters& DMethodEntity::params() const
{
	return m_params;
}

bool DMethodEntity::isConst() const
{
	return m_bConst;
}

void DMethodEntity::setConstant(bool bConst)
{
	m_bConst = bConst;
}

QString DMethodEntity::toString() const
{
	return QString();
}